﻿/*********************************************************************************
**                                                                              **
**  Copyright (C) 2024 LiLong                                                   **
**  This file is part of GnssLogs.                                              **
**                                                                              **
**  GnssLogs is free software: you can redistribute it and/or modify            **
**  it under the terms of the GNU Lesser General Public License as published by **
**  the Free Software Foundation, either version 3 of the License, or           **
**  (at your option) any later version.                                         **
**                                                                              **
**  GnssLogs is distributed in the hope that it will be useful,                 **
**  but WITHOUT ANY WARRANTY; without even the implied warranty of              **
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               **
**  GNU Lesser General Public License for more details.                         **
**                                                                              **
**  You should have received a copy of the GNU Lesser General Public License    **
**  along with GnssLogs.  If not, see <https://www.gnu.org/licenses/>.          **
**********************************************************************************/
#pragma once

#include "Commons.h"
#include "FormatMacro.h"
#include "LogHeader.h"

namespace GnssLogs
{
namespace BDSEPHEMERIS
{
struct Data
{
    LogHeader::Data header;
    uint32_t satelliteID;
    uint32_t week;
    double ura;
    uint32_t health1;
    double tgd1;
    double tgd2;
    uint32_t aodc;
    uint32_t toc;
    double a0;
    double a1;
    double a2;
    uint32_t aode;
    uint32_t toe;
    double rootA;
    double ecc;
    double omega;
    double deltaN;
    double m0;
    double ohm0;
    double ohm;
    double i0;
    double idot;
    double cuc;
    double cus;
    double crc;
    double crs;
    double cic;
    double cis;
    uint32_t crc32;
};
} // namespace BDSEPHEMERIS
} // namespace GnssLogs
GNSSLOGS_DECLARE_FORMATTER(GnssLogs::BDSEPHEMERIS::Data)